package com.oocl.o2o.merchant.dao;

import java.util.List;

// all dao need to implement C.R.U.D
public interface BaseDao<T> {
	T add(T t);

	// if no such element, returen null;
	T update(T t);

	// if no such element, returen null;
	T delete(String id);
	
	// if no such element, returen null;
	T findById(String id);

	List<T> findAll();
}
